package treenode;

public class SimpleTreeNode {
    public int val;
    public SimpleTreeNode left;
    public SimpleTreeNode right;

    public SimpleTreeNode() {
    }

    public SimpleTreeNode(int val) {
        this.val = val;
    }

    public SimpleTreeNode(int val, SimpleTreeNode left, SimpleTreeNode right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }

    @Override
    public String toString() {
        return "SimpleTreeNode{" +
                "val=" + val +
                ", left=" + left +
                ", right=" + right +
                '}';
    }
}
